<?$this->load->view('inf08/header');?>

	<div id="contentcontainer">

		<div id="content">
		
		<?foreach ($this->mdl_posts->get(array('url_title'=>$this->uri->segment(3))) as $post) {?>
	
			<div class="post">
			
				<h2><?=$post->title;?></h2>
				
				<p class="posted"><span class="posttime"><?=$post->date;?> / Posted by <?=$post->display_name;?> in (categories)</span><span class="comments"><a href="#">x Comments</a></span></p>
				
				<div class="entry">
				
				<?=$post->excerpt;?>
				
				<?if (isset($post->content)) {?>
				
					<?=$post->content;?>
				
				<?}?>
				
				</div>
				
				<div id="writecomment">
				
				<h2>Leave a Comment</h2>

				<?$this->load->view('comment_form', array('post'=>$post));?>
				
				</div>
				
				<h3>Comments</h3>
				
				<?foreach ($this->mdl_comments->get(array('post_id'=>$post->post_id)) as $comment) {?>

					<div class="bubble">
						<blockquote>
							<p><?=nl2br($comment->comment);?></p>
						</blockquote>
						<cite><strong><?=$comment->display_name;?></strong> <?=$this->inktype->format_date($comment->comment_date);?></cite>
					</div>
				
				<?}?>
				
			</div>
		
		<?}?>
		
		</div>
		
		<?$this->load->view('inf08/sidebar');?>

	</div>
	
<?$this->load->view('inf08/footer');?>